Repository navigation
feat(menus): a long menu shows a fade and a pill while rows remain below, and right-click menus keep under the menu bar (2.8.4) - #38
Merged
Conversation
…remain below A menu bar menu, or a submenu of one, that is cut off by its height cap now fades its bottom rows into the menu's glass and shows a narrow pill with a chevron over them. Both go when the last row is reached and fade back in when the rows are scrolled up. The rows now scroll inside the card, so the fade is a mask on the rows and nothing is painted on the glass. Right-click menus are unchanged.
…height cap and show the same hint A menu opened at a point (the layer, tab, guide and task bar menus) was clamped to 4 pixels from the window top, so in a small window a long one covered the menu bar. It now keeps below the in-window menu bar, is at most three quarters of the window tall, and shows the fade and pill when rows remain below. It still opens at the pointer and flips above or left when there is no room.
… remain below, right-click menus keep under the menu bar, and all three demos at this version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(menus): a long menu shows a fade and a pill while rows remain below, and right-click menus keep under the menu bar (2.8.4)
Summary
frontend/src/ui/menu.ts: aPopupMenupanel now holds.cv-menu-list, the rows, which scroll, and.cv-menu-more, the pill. The card keeps its glass and no longer scrolls itself.showMore()setshas-moreon every scroll, and on opening it sets the state with the transitions off, so a menu never opens with its hint fading in.frontend/src/styles/panels.css: the fade is a mask on the rows, so they fade into the card's own glass and nothing is painted on it.--menu-moreis a registered@property, so the mask animates.scroll-padding-block-endkeeps a row focused with the keys above the fade. Reduced motion turns the fades off.openAt: the layer, tab, guide and task bar menus) had the clamp 2.8.3 removed from the bar menus, so a long one filled a small window from top 4, over the menu bar. The owner saw the layer menu do this at 1280 by 800.openAtnow keeps the top at or under the in-window menu bar (barFloor(), the window top when the bar is hidden, as with the macOS menu bar). It sets the same three-quarter cap before measuring and shows the same hint. It still opens at the pointer and flips above or left when there is no room.Commits
Short hashes change when the commits are signed, so they are left out.
Version
v2.8.4 (release commit is last). Bumped:
frontend/package.json,frontend/package-lock.json(both fields),frontend/src/version.ts,backend/app/__init__.py,src-tauri/Cargo.toml,src-tauri/Cargo.lock,src-tauri/tauri.conf.json, the README badge,packaging/linux/ai.nodemode.formvis.metainfo.xml(a 2.8.4 release line), and aCHANGELOG.mdsection for 2.8.4. The demo bundles are rebuilt withnpm run demoandnpm run demos.Checks
tsc --noEmitinfrontend: clean.npx vitest run: 54 files, 299 tests passed../formvis counts --check: README.md is accurate.file://at 1280 by 800: File at top 38, 600 tall, with the hint, showing 2.8.4.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.